<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html" 
xmlns:f="http://java.sun.com/jsf/core" 
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:icecore="http://www.icefaces.org/icefaces/core">

<h:head>
	<title>Locadora.COM</title>
</h:head>

<h:outputScript     name="jquery-1.9.1.min.js" library="javascript" target="head" />
<h:outputScript     name="default.js"          library="javascript" target="head" />
<h:outputStylesheet name="default.css"         library="css" />

<icecore:config mandatoryResource='all' />

<h:body>
	<div id="header">
		<h:graphicImage library="images" name="Logo_Locadora.jpg" style="float:left;" />		
		<h:form>
			<br />	
			<h:panelGrid columns="2" style="float:right;" rendered="#{loginMB.usuarioLogado}">
				<h:outputLabel value="Usuário: " for="textUsuario" />
				<h:outputText value="#{loginMB.usuario.nome}" id="textUsuario" />
				
				<h:outputLabel value="Perfil: " for="textPerfil" />
				<h:outputText value="#{loginMB.usuario.perfil}" id="textPerfil" />
				
				<h:commandLink action="#{loginMB.sair}" value="Sair" />
			</h:panelGrid>
		</h:form>
		<h:messages id="ulMessages"></h:messages>
	</div>
	
	<div style="clear:both;"></div>
	
	<ui:insert name="corpo-da-pagina">Espaco para o conteudo da tela</ui:insert>
	
	<div id="footer" style ="text-align:center; position:absolute; bottom:0px; width:99%; height:60px;">
		<hr />
		&copy;2013 Grupo 1. Todos os direitos reservados.
	</div>
</h:body>
</html>